using System;
using System.Collections.Generic;

namespace InvestmentIntelligence.DbModel.Models
{
    public class User
    {
        public User()
        {
            this.User2Role = new List<User2Role>();
            this.AnalysisGroups = new List<AnalysisGroup>();
        }

        public int Id { get; set; }
        public string LoginName { get; set; }
        public string Password { get; set; }
        public string Theme { get; set; }
        public Nullable<int> ContactId { get; set; }
        public virtual Contact Contact { get; set; }
        public virtual ICollection<User2Role> User2Role { get; set; }
        public virtual ICollection<AnalysisGroup> AnalysisGroups { get; set; }
    }
}
